import * as React from "react";
import { Outlet } from "react-router-dom";
// import { useNavigate,useParams,useMatch} from 'react-router-dom';
// console.log(d)
import Common from '@/init/common.js';
import WorkerInit from '@/init/workerInit.js';

export default function EnterInit() {
  return (
    <React.Fragment>
      <React.Suspense>
        <WorkerInit />
        <Common />
        <Outlet />
      </React.Suspense>
    </React.Fragment>
  );
}



// 监听数组变化
// autorun(d => {
// 	console.log(store.list)
// })


// 监听常量数据变化
// observe(store,'count',res => {
// 	console.log(res)
// });


// 监听对象变化
// const persion = observable({age:10})
// autorun(()=>{
// 	console.log('age',persion.age);
// })
// setInterval(() => {
// 	runInAction(()=>{
// 		++persion.age;
// 	})
// },1000)
